package cn.regexp.elasticjob.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 *
 * 数据库对象实体
 */
public class SysJob implements Serializable {
    private long id;
    private String jobName;
    private String cron;
    private int shardTotalCount;
    private String shardItemParam;
    private int jobStatus;
    private String jobType;
    private String jobClass;
    private String scriptLines;
    private String scriptFilePath;
    private String scriptType;

    @Override
    public String toString() {
        return "SysJob{" +
                "id=" + id +
                ", jobName='" + jobName + '\'' +
                ", cron='" + cron + '\'' +
                ", shardTotalCount=" + shardTotalCount +
                ", shardItemParam='" + shardItemParam + '\'' +
                ", jobStatus=" + jobStatus +
                ", jobType='" + jobType + '\'' +
                ", jobClass='" + jobClass + '\'' +
                ", scriptLines='" + scriptLines + '\'' +
                ", scriptFilePath='" + scriptFilePath + '\'' +
                ", scriptType='" + scriptType + '\'' +
                '}';
    }
}
